package com.emuporium.gymrat.server.data;

import java.sql.Timestamp;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

/**
 * 
 * @author Dan
 * 
 * Used to represent exercise equipment used for a particular exercise, Barbell,
 * dumbbell, bodyweight, etc...
 * 
 */
@Root
public class Equipment {

	@Attribute
	private int id;
	@Attribute
	private int syncId;
	@Element
	private String name;
//	@Element
	private String shortName;
//	@Element
	private Timestamp timestamp;
//	@Element
	private Timestamp syncTimestamp;
	
	private boolean custom;

	public boolean isCustom() {
		return custom;
	}

	public void setCustom(boolean custom) {
		this.custom = custom;
	}

	public Equipment() {
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getSyncId() {
		return syncId;
	}

	public void setSyncId(int syncId) {
		this.syncId = syncId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	public Timestamp getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(Timestamp timestamp) {
		this.timestamp = timestamp;
	}

	public Timestamp getSyncTimestamp() {
		return syncTimestamp;
	}

	public void setSyncTimestamp(Timestamp syncTimestamp) {
		this.syncTimestamp = syncTimestamp;
	}

}
